package com.qzsf.backend.entity;

import com.qzsf.backend.dto.OrganizerDetailDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/*
 * @Author: Dennis Chen
 * @CreateTime: 2024/10/30 16:14 周三
 * @Email 1429278462@qq.com
 * @Remark 组织详细信息实体类
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrganizerProfile implements Serializable {
    private int id;
    private String name;
    private String pic;
    private String contactName;
    private String contactEmail;
    private String contactPhone;
    private String description;

    public OrganizerProfile(int id, OrganizerDetailDTO organizerDetailDto){
        this.id = id;
        this.name = organizerDetailDto.getName();
        this.pic = organizerDetailDto.getPic();
        this.contactName = organizerDetailDto.getContactName();
        this.contactEmail = organizerDetailDto.getContactEmail();
        this.contactPhone = organizerDetailDto.getContactPhone();
        this.description = organizerDetailDto.getDescription();
    }
}
